﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.templates;
using l1cs.server.serverpackets;

namespace l1cs.server.model.Instance
{
    public class L1BoardInstance : L1NpcInstance
    {
        private static Logger _log = Logger.getLogger( typeof( L1BoardInstance ).FullName );

        public L1BoardInstance( L1Npc template ) : base( template ) { }

        override public void onAction( L1PcInstance player )
        {
            player.sendPackets( new S_Board( this ) );
        }

        public void onAction( L1PcInstance player, int number )
        {
            player.sendPackets( new S_Board( this, number ) );
        }

        public void onActionRead( L1PcInstance player, int number )
        {
            player.sendPackets( new S_BoardRead( number ) );
        }
    }

}
